package structural.adapter;

import structural.adapter.avaFilters.Caramel;
import structural.adapter.avaFilters.CaramelAdapter;

public class AdapterPattern {
    public static void main(String[] args) {
        ImageView imageView = new ImageView(new Image());

        IFilter vividFilter = new ViVidFilter();
        imageView.applyFilter(vividFilter);

        IFilter caramelFilter = new CaramelFilter(new Caramel());
        imageView.applyFilter(caramelFilter);

        IFilter caramelAdapter = new CaramelAdapter();
        imageView.applyFilter(caramelAdapter);
    }
}
